package com.cheng.chengliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheng.chengliving.commodity.vo.AttrGroupWithAttrsVo;
import com.cheng.common.utils.PageUtils;
import com.cheng.chengliving.commodity.entity.AttrgroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 家居商品属性分组
 *
 * @author zhucheng
 * @email 1920361386@qq.com
 * @date 2022-11-23 11:23:21
 */
public interface AttrgroupService extends IService<AttrgroupEntity> {

    PageUtils queryPage(Map<String, Object> params);


    //增加根据分类+查询条件+分页的AIP接口
    //根据自己的业务逻辑,进行定制
    PageUtils queryPage(Map<String,Object> params, Long categoryId);

    /**
     * 根据分类categoryId返回该分类关联的属性组和这些属性组关联的基本属性
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCategoryId(Long categoryId);

}

